CC=g++
INCLUDE=-I../include/ -I../src
#LOG=-DXLOGGER
CPPFLAGS:=-Wall -g $(INCLUDE) $(LOG)
LIB=#-llog4cplus -lpthread
SH_LIB=../lib/libxbaseclient.a

all: XbaseShell

XbaseShell : XbaseShell.cpp $(SH_LIB) XToken.o XShellCommand.o
	$(CC) $^ $(CPPFLAGS) $(LIB) -o XbaseShell -lcurses -lreadline

XToken.o : XToken.cpp XToken.h
	$(CC) -c -g -Wall $(INCLUDE) $<

XShellCommand.o : XShellCommand.cpp XShellCommand.h
	$(CC) -c -g -Wall $(INCLUDE) $<

clean : 
	$(RM) XbaseShell
	$(RM) *.d *.o
